package com.pattern.once.proxy.s;

public class GamePlayerProxy implements IGamePlayer{

    private IGamePlayer iGamePlayer;

    public GamePlayerProxy(IGamePlayer iGamePlayer) {
        this.iGamePlayer = iGamePlayer;
    }

    private GamePlayerProxy() {
    }

    @Override
    public void login() {
        System.out.println("代练");
        this.iGamePlayer.login();
    }

    @Override
    public void player() {
        System.out.println("代练");
        this.iGamePlayer.player();
    }

    @Override
    public void loginOut() {
        System.out.println("代练");
        this.iGamePlayer.loginOut();
    }
}
